﻿using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace ShevaEngine.Core.Modules.Materials
{
    /// <summary>
    /// Material profile.
    /// </summary>
    public class GraphicsMaterialProfile
    {
        /// <summary>Effect filename.</summary>
        public string EffectName;
        /// <summary>XNA effect.</summary>
        [ContentSerializerIgnore]
        private Effect Effect;

        /// <summary>Cast shadows.</summary>
        public bool CastShadows;
        /// <summary>Receive shadows.</summary>
        public bool ReceiveShadows;

        /// <summary>
        /// Constructor.
        /// </summary>
        public GraphicsMaterialProfile()
        {            
        }

        /// <summary>
        /// Initialization method.
        /// </summary>
        internal void Init()
        {
            this.Effect = MaterialManager.Instance.GetEffect(this.EffectName);
        }
    }
}
